import 'package:enterprise_v6_app/generated/json/base/json_convert_content.dart';
import 'package:enterprise_v6_app/app/data/entities/double_control/promise_day_record_list_entity.dart';

PromiseDayRecordListEntity $PromiseDayRecordListEntityFromJson(Map<String, dynamic> json) {
  final PromiseDayRecordListEntity promiseDayRecordListEntity = PromiseDayRecordListEntity();
  final int? bigHiddenDanger = jsonConvert.convert<int>(json['bigHiddenDanger']);
  if (bigHiddenDanger != null) {
    promiseDayRecordListEntity.bigHiddenDanger = bigHiddenDanger;
  }
  final String? changeWork = jsonConvert.convert<String>(json['changeWork']);
  if (changeWork != null) {
    promiseDayRecordListEntity.changeWork = changeWork;
  }
  final String? circuitWork = jsonConvert.convert<String>(json['circuitWork']);
  if (circuitWork != null) {
    promiseDayRecordListEntity.circuitWork = circuitWork;
  }
  final String? companyCode = jsonConvert.convert<String>(json['companyCode']);
  if (companyCode != null) {
    promiseDayRecordListEntity.companyCode = companyCode;
  }
  final String? contractorWork = jsonConvert.convert<String>(json['contractorWork']);
  if (contractorWork != null) {
    promiseDayRecordListEntity.contractorWork = contractorWork;
  }
  final String? createBy = jsonConvert.convert<String>(json['createBy']);
  if (createBy != null) {
    promiseDayRecordListEntity.createBy = createBy;
  }
  final String? createById = jsonConvert.convert<String>(json['createById']);
  if (createById != null) {
    promiseDayRecordListEntity.createById = createById;
  }
  final String? createDate = jsonConvert.convert<String>(json['createDate']);
  if (createDate != null) {
    promiseDayRecordListEntity.createDate = createDate;
  }
  final String? deleted = jsonConvert.convert<String>(json['deleted']);
  if (deleted != null) {
    promiseDayRecordListEntity.deleted = deleted;
  }
  final int? deviceCount = jsonConvert.convert<int>(json['deviceCount']);
  if (deviceCount != null) {
    promiseDayRecordListEntity.deviceCount = deviceCount;
  }
  final String? electricityWork = jsonConvert.convert<String>(json['electricityWork']);
  if (electricityWork != null) {
    promiseDayRecordListEntity.electricityWork = electricityWork;
  }
  final String? highWork = jsonConvert.convert<String>(json['highWork']);
  if (highWork != null) {
    promiseDayRecordListEntity.highWork = highWork;
  }
  final String? hoistingWork = jsonConvert.convert<String>(json['hoistingWork']);
  if (hoistingWork != null) {
    promiseDayRecordListEntity.hoistingWork = hoistingWork;
  }
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    promiseDayRecordListEntity.id = id;
  }
  final int? inspectCount = jsonConvert.convert<int>(json['inspectCount']);
  if (inspectCount != null) {
    promiseDayRecordListEntity.inspectCount = inspectCount;
  }
  final String? inspectWork = jsonConvert.convert<String>(json['inspectWork']);
  if (inspectWork != null) {
    promiseDayRecordListEntity.inspectWork = inspectWork;
  }
  final String? isContractorWork = jsonConvert.convert<String>(json['isContractorWork']);
  if (isContractorWork != null) {
    promiseDayRecordListEntity.isContractorWork = isContractorWork;
  }
  final int? isDevelop = jsonConvert.convert<int>(json['isDevelop']);
  if (isDevelop != null) {
    promiseDayRecordListEntity.isDevelop = isDevelop;
  }
  final int? isOpenStop = jsonConvert.convert<int>(json['isOpenStop']);
  if (isOpenStop != null) {
    promiseDayRecordListEntity.isOpenStop = isOpenStop;
  }
  final String? oneLevelHotWork = jsonConvert.convert<String>(json['oneLevelHotWork']);
  if (oneLevelHotWork != null) {
    promiseDayRecordListEntity.oneLevelHotWork = oneLevelHotWork;
  }
  final int? openDeviceCount = jsonConvert.convert<int>(json['openDeviceCount']);
  if (openDeviceCount != null) {
    promiseDayRecordListEntity.openDeviceCount = openDeviceCount;
  }
  final int? openOrStopCount = jsonConvert.convert<int>(json['openOrStopCount']);
  if (openOrStopCount != null) {
    promiseDayRecordListEntity.openOrStopCount = openOrStopCount;
  }
  final String? plateWork = jsonConvert.convert<String>(json['plateWork']);
  if (plateWork != null) {
    promiseDayRecordListEntity.plateWork = plateWork;
  }
  final String? pourWork = jsonConvert.convert<String>(json['pourWork']);
  if (pourWork != null) {
    promiseDayRecordListEntity.pourWork = pourWork;
  }
  final int? produceDeviceCount = jsonConvert.convert<int>(json['produceDeviceCount']);
  if (produceDeviceCount != null) {
    promiseDayRecordListEntity.produceDeviceCount = produceDeviceCount;
  }
  final int? production = jsonConvert.convert<int>(json['production']);
  if (production != null) {
    promiseDayRecordListEntity.production = production;
  }
  final String? promiseContent = jsonConvert.convert<String>(json['promiseContent']);
  if (promiseContent != null) {
    promiseDayRecordListEntity.promiseContent = promiseContent;
  }
  final String? promiseName = jsonConvert.convert<String>(json['promiseName']);
  if (promiseName != null) {
    promiseDayRecordListEntity.promiseName = promiseName;
  }
  final String? promiseTime = jsonConvert.convert<String>(json['promiseTime']);
  if (promiseTime != null) {
    promiseDayRecordListEntity.promiseTime = promiseTime;
  }
  final String? promiseUserId = jsonConvert.convert<String>(json['promiseUserId']);
  if (promiseUserId != null) {
    promiseDayRecordListEntity.promiseUserId = promiseUserId;
  }
  final String? promiseUserName = jsonConvert.convert<String>(json['promiseUserName']);
  if (promiseUserName != null) {
    promiseDayRecordListEntity.promiseUserName = promiseUserName;
  }
  final int? runCount = jsonConvert.convert<int>(json['runCount']);
  if (runCount != null) {
    promiseDayRecordListEntity.runCount = runCount;
  }
  final String? soilWork = jsonConvert.convert<String>(json['soilWork']);
  if (soilWork != null) {
    promiseDayRecordListEntity.soilWork = soilWork;
  }
  final String? spaceWork = jsonConvert.convert<String>(json['spaceWork']);
  if (spaceWork != null) {
    promiseDayRecordListEntity.spaceWork = spaceWork;
  }
  final int? stopCount = jsonConvert.convert<int>(json['stopCount']);
  if (stopCount != null) {
    promiseDayRecordListEntity.stopCount = stopCount;
  }
  final int? stopDeviceCount = jsonConvert.convert<int>(json['stopDeviceCount']);
  if (stopDeviceCount != null) {
    promiseDayRecordListEntity.stopDeviceCount = stopDeviceCount;
  }
  final String? superLevelHotWork = jsonConvert.convert<String>(json['superLevelHotWork']);
  if (superLevelHotWork != null) {
    promiseDayRecordListEntity.superLevelHotWork = superLevelHotWork;
  }
  final int? technologyCount = jsonConvert.convert<int>(json['technologyCount']);
  if (technologyCount != null) {
    promiseDayRecordListEntity.technologyCount = technologyCount;
  }
  final String? twoLevelHotWork = jsonConvert.convert<String>(json['twoLevelHotWork']);
  if (twoLevelHotWork != null) {
    promiseDayRecordListEntity.twoLevelHotWork = twoLevelHotWork;
  }
  final String? unmixedWork = jsonConvert.convert<String>(json['unmixedWork']);
  if (unmixedWork != null) {
    promiseDayRecordListEntity.unmixedWork = unmixedWork;
  }
  final String? updateBy = jsonConvert.convert<String>(json['updateBy']);
  if (updateBy != null) {
    promiseDayRecordListEntity.updateBy = updateBy;
  }
  final String? updateById = jsonConvert.convert<String>(json['updateById']);
  if (updateById != null) {
    promiseDayRecordListEntity.updateById = updateById;
  }
  final String? updateDate = jsonConvert.convert<String>(json['updateDate']);
  if (updateDate != null) {
    promiseDayRecordListEntity.updateDate = updateDate;
  }
  final String? waterWork = jsonConvert.convert<String>(json['waterWork']);
  if (waterWork != null) {
    promiseDayRecordListEntity.waterWork = waterWork;
  }
  return promiseDayRecordListEntity;
}

Map<String, dynamic> $PromiseDayRecordListEntityToJson(PromiseDayRecordListEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['bigHiddenDanger'] = entity.bigHiddenDanger;
  data['changeWork'] = entity.changeWork;
  data['circuitWork'] = entity.circuitWork;
  data['companyCode'] = entity.companyCode;
  data['contractorWork'] = entity.contractorWork;
  data['createBy'] = entity.createBy;
  data['createById'] = entity.createById;
  data['createDate'] = entity.createDate;
  data['deleted'] = entity.deleted;
  data['deviceCount'] = entity.deviceCount;
  data['electricityWork'] = entity.electricityWork;
  data['highWork'] = entity.highWork;
  data['hoistingWork'] = entity.hoistingWork;
  data['id'] = entity.id;
  data['inspectCount'] = entity.inspectCount;
  data['inspectWork'] = entity.inspectWork;
  data['isContractorWork'] = entity.isContractorWork;
  data['isDevelop'] = entity.isDevelop;
  data['isOpenStop'] = entity.isOpenStop;
  data['oneLevelHotWork'] = entity.oneLevelHotWork;
  data['openDeviceCount'] = entity.openDeviceCount;
  data['openOrStopCount'] = entity.openOrStopCount;
  data['plateWork'] = entity.plateWork;
  data['pourWork'] = entity.pourWork;
  data['produceDeviceCount'] = entity.produceDeviceCount;
  data['production'] = entity.production;
  data['promiseContent'] = entity.promiseContent;
  data['promiseName'] = entity.promiseName;
  data['promiseTime'] = entity.promiseTime;
  data['promiseUserId'] = entity.promiseUserId;
  data['promiseUserName'] = entity.promiseUserName;
  data['runCount'] = entity.runCount;
  data['soilWork'] = entity.soilWork;
  data['spaceWork'] = entity.spaceWork;
  data['stopCount'] = entity.stopCount;
  data['stopDeviceCount'] = entity.stopDeviceCount;
  data['superLevelHotWork'] = entity.superLevelHotWork;
  data['technologyCount'] = entity.technologyCount;
  data['twoLevelHotWork'] = entity.twoLevelHotWork;
  data['unmixedWork'] = entity.unmixedWork;
  data['updateBy'] = entity.updateBy;
  data['updateById'] = entity.updateById;
  data['updateDate'] = entity.updateDate;
  data['waterWork'] = entity.waterWork;
  return data;
}

extension PromiseDayRecordListEntityExtension on PromiseDayRecordListEntity {
  PromiseDayRecordListEntity copyWith({
    int? bigHiddenDanger,
    String? changeWork,
    String? circuitWork,
    String? companyCode,
    String? contractorWork,
    String? createBy,
    String? createById,
    String? createDate,
    String? deleted,
    int? deviceCount,
    String? electricityWork,
    String? highWork,
    String? hoistingWork,
    String? id,
    int? inspectCount,
    String? inspectWork,
    String? isContractorWork,
    int? isDevelop,
    int? isOpenStop,
    String? oneLevelHotWork,
    int? openDeviceCount,
    int? openOrStopCount,
    String? plateWork,
    String? pourWork,
    int? produceDeviceCount,
    int? production,
    String? promiseContent,
    String? promiseName,
    String? promiseTime,
    String? promiseUserId,
    String? promiseUserName,
    int? runCount,
    String? soilWork,
    String? spaceWork,
    int? stopCount,
    int? stopDeviceCount,
    String? superLevelHotWork,
    int? technologyCount,
    String? twoLevelHotWork,
    String? unmixedWork,
    String? updateBy,
    String? updateById,
    String? updateDate,
    String? waterWork,
  }) {
    return PromiseDayRecordListEntity()
      ..bigHiddenDanger = bigHiddenDanger ?? this.bigHiddenDanger
      ..changeWork = changeWork ?? this.changeWork
      ..circuitWork = circuitWork ?? this.circuitWork
      ..companyCode = companyCode ?? this.companyCode
      ..contractorWork = contractorWork ?? this.contractorWork
      ..createBy = createBy ?? this.createBy
      ..createById = createById ?? this.createById
      ..createDate = createDate ?? this.createDate
      ..deleted = deleted ?? this.deleted
      ..deviceCount = deviceCount ?? this.deviceCount
      ..electricityWork = electricityWork ?? this.electricityWork
      ..highWork = highWork ?? this.highWork
      ..hoistingWork = hoistingWork ?? this.hoistingWork
      ..id = id ?? this.id
      ..inspectCount = inspectCount ?? this.inspectCount
      ..inspectWork = inspectWork ?? this.inspectWork
      ..isContractorWork = isContractorWork ?? this.isContractorWork
      ..isDevelop = isDevelop ?? this.isDevelop
      ..isOpenStop = isOpenStop ?? this.isOpenStop
      ..oneLevelHotWork = oneLevelHotWork ?? this.oneLevelHotWork
      ..openDeviceCount = openDeviceCount ?? this.openDeviceCount
      ..openOrStopCount = openOrStopCount ?? this.openOrStopCount
      ..plateWork = plateWork ?? this.plateWork
      ..pourWork = pourWork ?? this.pourWork
      ..produceDeviceCount = produceDeviceCount ?? this.produceDeviceCount
      ..production = production ?? this.production
      ..promiseContent = promiseContent ?? this.promiseContent
      ..promiseName = promiseName ?? this.promiseName
      ..promiseTime = promiseTime ?? this.promiseTime
      ..promiseUserId = promiseUserId ?? this.promiseUserId
      ..promiseUserName = promiseUserName ?? this.promiseUserName
      ..runCount = runCount ?? this.runCount
      ..soilWork = soilWork ?? this.soilWork
      ..spaceWork = spaceWork ?? this.spaceWork
      ..stopCount = stopCount ?? this.stopCount
      ..stopDeviceCount = stopDeviceCount ?? this.stopDeviceCount
      ..superLevelHotWork = superLevelHotWork ?? this.superLevelHotWork
      ..technologyCount = technologyCount ?? this.technologyCount
      ..twoLevelHotWork = twoLevelHotWork ?? this.twoLevelHotWork
      ..unmixedWork = unmixedWork ?? this.unmixedWork
      ..updateBy = updateBy ?? this.updateBy
      ..updateById = updateById ?? this.updateById
      ..updateDate = updateDate ?? this.updateDate
      ..waterWork = waterWork ?? this.waterWork;
  }
}
